package com.fangzc.codegen.entity.tables;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

/**
 * 表定义层。
 *
 * @author FANGZC-TB14
 * @since 2023-05-27
 */
public class TSysUser extends TableDef {

    public static final TSysUser sys_user = new TSysUser("sys_user");

    public QueryColumn user_id = new QueryColumn(this, "user_id");
    public QueryColumn dept_id = new QueryColumn(this, "dept_id");
    public QueryColumn user_name = new QueryColumn(this, "user_name");
    public QueryColumn nick_name = new QueryColumn(this, "nick_name");
    public QueryColumn user_type = new QueryColumn(this, "user_type");
    public QueryColumn email = new QueryColumn(this, "email");
    public QueryColumn phonenumber = new QueryColumn(this, "phonenumber");
    public QueryColumn sex = new QueryColumn(this, "sex");
    public QueryColumn avatar = new QueryColumn(this, "avatar");
    public QueryColumn password = new QueryColumn(this, "password");
    public QueryColumn status = new QueryColumn(this, "status");
    public QueryColumn del_flag = new QueryColumn(this, "del_flag");
    public QueryColumn login_ip = new QueryColumn(this, "login_ip");
    public QueryColumn login_date = new QueryColumn(this, "login_date");
    public QueryColumn create_by = new QueryColumn(this, "create_by");
    public QueryColumn create_time = new QueryColumn(this, "create_time");
    public QueryColumn update_by = new QueryColumn(this, "update_by");
    public QueryColumn update_time = new QueryColumn(this, "update_time");
    public QueryColumn remark = new QueryColumn(this, "remark");

    public QueryColumn[] default_columns = new QueryColumn[]{user_id, dept_id, user_name, nick_name, user_type, email, phonenumber, sex, avatar, password, status, login_ip, login_date, create_by, create_time, update_by, update_time, remark};
    public QueryColumn[] all_columns = new QueryColumn[]{user_id, dept_id, user_name, nick_name, user_type, email, phonenumber, sex, avatar, password, status, del_flag, login_ip, login_date, create_by, create_time, update_by, update_time, remark};

    public TSysUser(String tableName) {
        super(tableName);
    }
}
